<template>
  <div>
    <p>{{ title }}</p>
    <p>title</p>
    <p>{{ money * 100 }}</p>
    <p>{{ person.name }}</p>
    <p>{{ person.age }}</p>
    <p>{{ age }}</p>
    <button @click="sum">点我+1</button>
  </div>
</template>
<script setup lang="ts">
// ref 就是一个组合式API
const title = '你好'
const money = 100
const person = {
  name: '张三',
  age: 18
}
const sum = () => {
  person.age++
  console.log(person.age)
}
</script>